package com.xu.mapper;

import com.xu.pojo.Movie;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
@Mapper
public interface MovieMapper {

    int insertMovies(List<Movie> movieList);

    int insertMovie(Movie movie);

    Movie queryMovieByName(String name);

    Movie queryMovieById(int id);

    List<Movie> queryMovies(String date);

    int updateMovie(Movie movie);
}
